package cn.edu.njpi.mapper;

import cn.edu.njpi.model.TUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    List<TUser> getAllUser();

    TUser selectUsernameAndPassword(TUser tUser);

    List<TUser> selectUserByClassId(Integer classId);
}